package com.lkpstudy.rbac.controller;

import com.lkpstudy.rbac.base.BaseController;
import com.lkpstudy.rbac.entity.Role;
import com.lkpstudy.rbac.service.RoleService;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author likaiping
 * @editTime 2024/4/17 20:31
 */
@RestController
@RequestMapping("/role")
public class RoleController extends BaseController<RoleService,Role> {
    @PutMapping("/edit/auths")
    public boolean editRoles(@RequestHeader("roleId") Long roleId,@RequestBody List<Long> authIds) {
        return baseService.editAuths(roleId,authIds);
    }
}
